<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/5
 * Time: 11:28
 */
include "../config.php";
if(isset($_REQUEST["uname"])){

    $UNAME = $_REQUEST["uname"];

    $sql = "SELECT * FROM userInfo WHERE uname=?";
    $stmt = $conn->prepare($sql);
    $stmt->bind_param("s", $UNAME);
    $stmt->execute();
    $result = $stmt->get_result();
    if($result->num_rows>=1){
        print_r("false");

    }else{
        print_r("true");
    }

}

